package com.viphuli.http.bean.part;

import com.google.gson.annotations.SerializedName;
import com.offroader.utils.StringUtils;

public class AccountUser {

	@SerializedName("uid")
	private String uid;

	@SerializedName("user_name")
	private String userName;

	@SerializedName("tel")
	private String tel;

	@SerializedName("portrait")
	private String portrait;

	@SerializedName("consume_ticket_count")
	private int consumeTicketCount;

	@SerializedName("user_type")
	private int userType;

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getTel() {
		return tel;
	}

	public String telSecurity() {
		
		if(StringUtils.isNotBlank(tel)&&tel.length()==11){
			String sTel = tel.substring(0, 3)+"****"+tel.substring(7);
			return sTel;
		}
		
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getPortrait() {
		return portrait;
	}

	public void setPortrait(String portrait) {
		this.portrait = portrait;
	}

	public int getConsumeTicketCount() {
		return consumeTicketCount;
	}

	public void setConsumeTicketCount(int consumeTicketCount) {
		this.consumeTicketCount = consumeTicketCount;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getUserType() {
		return userType;
	}

	public void setUserType(int userType) {
		this.userType = userType;
	}

}
